package com.lin.cloud.disk.entity.request;

import com.lin.cloud.disk.common.entity.request.AccessTokenRequest;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

import javax.validation.constraints.NotBlank;

/**
 * 修改密码请求实体类
 * @author ljc
 * @date 2020/12/11 23:38
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class ModifyPasswordRequest extends AccessTokenRequest {


    @ApiModelProperty(value = "用户名", name = "userName",example = "root")
    @NotBlank(message = "用户名不能为空")
    private String userName;

    @ApiModelProperty(value = "旧密码", name = "oldPassword",example = "root")
    @NotBlank(message = "旧密码不能为空")
    private String oldPassword;

    @ApiModelProperty(value = "新密码", name = "newPassword",example = "root")
    @NotBlank(message = "新密码不能为空")
    private String newPassword;
}
